
import Picker from '../picker'
import TimePanel from '../panel/time'
import TimeRangePanel from '../panel/time-range'

export default {
    mixins: [Picker],

    name: 'LeTimePicker',

    data() {
        return {
            type: ''
        }
    },

    props: {
        isRange: Boolean,
    },

    created() {
        this.type = this.isRange ? 'timerange' : 'time';
        this.panel = this.isRange ? TimeRangePanel : TimePanel;
    },
}